/* 
 *  BuildNet.java
 *
 *  Use Netica-J to construct a Bayes net and save it to file.
 */
import norsys.netica.*;
import norsys.neticaEx.aliases.Node;
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.util.*;


public class BuildNet {

  public static void main (String[] args){
    try {
    	if(args.length < 1)
    	{
    		String inputFile = JOptionPane.showInputDialog("Enter Input Filename:");
    		String outputFile = JOptionPane.showInputDialog("Enter Output Filename:");
    		String prevalanceFile = JOptionPane.showInputDialog("Enter Prevalance Filename:");
    		String partialCorrelationThreshold = JOptionPane.showInputDialog("Enter Partial correlation threshold:");
    	
         NoisyHybridBean nhb = new NoisyHybridBean();
    	
         nhb.processRequest(inputFile, outputFile, prevalanceFile, Double.valueOf(partialCorrelationThreshold));
    	}
    
	   }
    catch (Exception e) {
	e.printStackTrace();
    }
  }
}
